#include <stdlib.h>
#include <stdio.h>
unsigned int *alloc_array(unsigned int num)
{
	unsigned int *p;
	p =  calloc(1, sizeof(unsigned int) * num);
	printf("malloc %p\n", p);
	return p;
}
void free_array(unsigned int *data)
{
	if (data){
		printf("free %p\n", data);
		free(data);
	}
}
void revert(unsigned int *data, unsigned int num)
{
	unsigned int i, j, temp;
	for(i = 0, j = num -1; i < j; i++, j--)
	{
		temp = data[i];
		data[i] = data[j];
		data[j] = temp;
	}
}
